<?php
/**
 * Created by PhpStorm.
 * User: zhanglei
 * Date: 2018/5/11
 * Time: 8:27
 */

namespace app\admin\model;


class OrderDetail extends BaseModel
{
    // 反向关联商品表
    public function goods()
    {
        return $this->belongsTo('Goods','goods_id','id');
    }
}